#
# Be sure to run `pod lib lint YYToolSet.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'YYToolSet'
  s.version          = '0.2.9'
  s.summary          = '工具集 YYToolSet.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/yuyiios/YYToolProject'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'yuyiios@163.com' => 'yuyiios@163.com' }
  s.source           = { :git => 'https://gitee.com/yuyiios/YYToolProject.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '8.0'


#s.source_files = 'YYToolSet/Classes/**/*'
#s.public_header_files = 'YYToolSet/Classes/**/*.h'
  
  #s.source_files = 'YYToolSet/Classes/.{h,m}'
  #s.public_header_files = 'YYToolSet/Classes/YYBasePrefixHeader.h'
  
  s.subspec 'Category' do |category|
      category.source_files = 'YYToolSet/Classes/Category/*.{h,m}'
      category.public_header_files = 'YYToolSet/Classes/Category/*.h'
  end
 
  s.subspec 'DataStore' do |dataStore|
      dataStore.source_files = 'YYToolSet/Classes/DataStore/*.{h,m}'
      dataStore.public_header_files = 'YYToolSet/Classes/DataStore/*.h'
  end
  
  s.subspec 'Network' do |network|
      network.source_files = 'YYToolSet/Classes/Network/*.{h,m}'
      network.public_header_files = 'YYToolSet/Classes/Network/*.h'
      
      network.dependency 'YTKNetwork', '~> 2.0.4'
  end
  
  s.subspec 'Tool' do |tool|
      tool.source_files = 'YYToolSet/Classes/Tool/*.{h,m}'
      tool.public_header_files = 'YYToolSet/Classes/Tool/*.h'
      
      tool.dependency 'YYModel', '~> 1.0.4'
  end
  
  s.subspec 'UI' do |ui|
      ui.source_files = 'YYToolSet/Classes/UI/*.{h,m}'
      ui.public_header_files = 'YYToolSet/Classes/UI/*.h'
      
      ui.dependency 'Masonry', '~> 1.1.0'
      ui.dependency 'MJRefresh', '~> 3.1.15.3'
      ui.dependency 'MBProgressHUD', '~> 1.1.0'
      ui.dependency 'IQKeyboardManager', '~> 6.0.4'
      ui.dependency 'SDWebImage', '~> 4.4.1'
  end
  
  s.subspec 'View' do |view|
      view.source_files = 'YYToolSet/Classes/View/*.{h,m}'
      view.public_header_files = 'YYToolSet/Classes/View/*.h'
  end
  
  # s.resource_bundles = {
  #   'YYToolSet' => ['YYToolSet/Assets/*.png']
  # }

  # s.public_header_files = 'YYToolSet/Classes/YYPrefixHeader.h'
  
  #s.dependency 'YTKNetwork', '~> 2.0.4'
  #s.dependency 'YYModel', '~> 1.0.4'
  #s.dependency 'Masonry', '~> 1.1.0'
  #s.dependency 'MJRefresh', '~> 3.1.15.3'
  #s.dependency 'MBProgressHUD', '~> 1.1.0'
  #s.dependency 'IQKeyboardManager', '~> 6.0.4'
  #s.dependency 'SDWebImage', '~> 4.4.1'
  
   
   s.frameworks = 'UIKit', 'Foundation'
end
